class CreateHobbies < ActiveRecord::Migration
  def self.up
    create_table :hobbies do |t|
      t.string :nombre
      t.text :descripcion

      t.timestamps
    end
    #Crear realacion HABTM
    create_table :hobbies_usuarios, :id => false do |t|
      t.integer :hobbie_id, :usuario_id
    end
  end

  def self.down
    drop_table :hobbies
    dorp_table :hobbies_usuarios
  end
end
